package com.china08.yxyapi.repository.mg.cookbook;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;

import com.china08.yxyapi.entity.mg.cookbook.CookBook;

public interface YxySchManageCookbookRepository extends MongoRepository<CookBook, String> {

    List<CookBook> findBySchoolId(String schoolId);

    CookBook findBySchoolIdAndWeekId(String schoolId, Integer weekId);

    CookBook findBySchoolIdAndId(String schoolId, String id);

    CookBook findById(String id);

}
